#encoding='gbk'


import unittest
from Calc import Calc
#import Calc

class ClassMyTest(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        self.c= Calc()
        pass
    def test_2div(self):
        self.assertEqual(Calc.div(8,2,4),1,'Test Div Fail')
        pass
    def test_2add(self):
        self.assertEqual(self.c.add(2,1,3),15,'Test add Fail')
        pass
    def test_2sub(self):
        self.assertEqual(self.c.sub(2,1,3),-2,'Test sub Fail')
        pass
    def test_2mul(self):
        self.assertEqual(Calc.mul(2,3,5),30,'Test mul Fail')
        pass

if __name__== '__main__':
    #unittest.main()
    unittest.main()